<?php  
header("content-type:text/html;charset=utf-8");
 require './common/menu.php';
?> 


<!doctype html>
<html lang="zh-cn">
 <head>
 <link rel="stylesheet">
  <meta charset="UTF-8">  
  <title>音乐列表</title>
 </head>
 <body>
 
 
 <center><h3>音乐列表</h3></center>
  <table align="center" width="80%" border=0 class="table table-hover">
 <tr>
 	    <th>序号</th>
   		<th>音乐名称</th> 
   		<th>歌手id</th>
      <th>链接</th>
   		<th>操作</th>
 </tr>
  <?php
   foreach ($data['musics'] as $row) {
   	echo '<tr>';
  	echo'<td>'.$row['sid'].'</td>';
 	  echo'<td>'.$row['song'].'</td>';
    echo'<td>'.$row['gid'].'</td>';
  echo'<td>'.$row['url'].'</td>';
  echo '<td><a href="admin.php?c=music&m=delmusic&id='.$row['sid'].'" onClick="return confirm(\'确定要删除吗？\');"><button type="button" class="btn btn-default">删除</button></a></td>';
  echo '</tr>';
  }
 
?>   
 </body>
</html>
